import request from '@/utils/request'

// 查询产线工位列表
export function listProductLineStation(query) {
  return request({
    url: '/system/station/list',
    method: 'get',
    params: query
  })
}

// 查询产线工位详细
export function getProductLineStation(lineStationId) {
  return request({
    url: '/system/station/' + lineStationId,
    method: 'get'
  })
}

// 新增产线工位
export function addProductLineStation(data) {
  return request({
    url: '/system/station',
    method: 'post',
    data: data
  })
}

// 修改产线工位
export function updateProductLineStation(data) {
  return request({
    url: '/system/station',
    method: 'put',
    data: data
  })
}

// 删除产线工位
export function delProductLineStation(lineStationId) {
  return request({
    url: '/system/station/' + lineStationId,
    method: 'delete'
  })
}
